package com.qiuhui.mapper;

import com.qiuhui.entity.Player;
import org.apache.ibatis.type.SqlTimestampTypeHandler;
import org.mybatis.spring.SqlSessionTemplate;

import java.util.List;

/**
 * @ClassName: PlayerMapperImpl
 * @Description: TODO
 * @author: tian
 * @date: 2021/3/24  11:18 上午
 */
public class PlayerMapperImpl implements PlayerMapper{
    private SqlSessionTemplate sessionTemplate;

    public void setSessionTemplate(SqlSessionTemplate sessionTemplate) {
        this.sessionTemplate = sessionTemplate;
    }

    @Override
    public List<Player> getPlayer() {
        PlayerMapper mapper = sessionTemplate.getMapper(PlayerMapper.class);
        return mapper.getPlayer();
    }
}
